<?php  
   $attributes = array('role' => 'form','class'=>'form-horizontal','id'=>'update-ghe');
   echo form_open('',$attributes);
?>                    
              
          
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title" style="font-size: 1.25em !important;">Cập nhật ghế cho khách hàng</h3>
                </div>
            
            <div class="panel-body">   
            <table class="table table-striped">
                <thead>
                    <tr class="warning">
                        <th>Mã số khách hàng</th>
                        <th>Họ và tên</th>
                        <th>Ghế hiện tại</th>
                        <th>Ghế ngồi</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    <tr style="height: 45px;">
                    <td><?php echo $query->MSKH; ?></td>
                    <td><?php echo $query->HOTEN; ?></td>
                    <td id="gheso"><?php echo $query->GHESO?></td>
                    <td style="width: 70px">
                        <select id="ghe" name="ganghe" required>
                            <option value="" disabled selected>Chọn ghế</option>
                            <?php foreach ($ghetrong as $row) {
                                echo '<option value="'.$row['GHESO'].'">'.$row['GHESO'].'</option>';
                            }
                            ?>
                        </select>
                        
                    </td>
                    <th id="status" style="width: 60px"></th>
                </tr>
                </tbody>
            </table>
                <input type="hidden" value="<?php echo $query->MSKH; ?>" name="MSKH" />
                <input type="hidden" value="<?=$query->MSCB?>" name="MSCB">
                <!--button-->
                    <div style="margin-left: 41%;">                  
                        <input style="width: 250px; " type="submit" class="btn btn-primary btn-sm btn-block" value="Thay đổi">
                   </div>     
            </div> 
                </div>
 <?php 
    echo form_close();
 ?>            
